//
//  HTTPMananger.h
//  EcShop
//
//  Created by soft on 2017/10/25.
//  Copyright © 2017年 soft. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
typedef void(^HTTPDictResultBlock)(NSDictionary *object, NSError *error);
@interface HTTPMananger : AFHTTPSessionManager
+ (HTTPMananger *)sharedManager;
-(void)home:(HTTPDictResultBlock)callback;//主页
//商品详情
-(void)productIndex:(HTTPDictResultBlock)callback pid:(NSString *)pid;//商品详情
//搜索推荐
-(void)searchRecommend:(HTTPDictResultBlock)callback;//搜索推荐
//获取城市
-(void)getProvince:(HTTPDictResultBlock)callback;//获取城市
-(void)classifyProduct:(HTTPDictResultBlock)callback;//商品分类
//搜索商品
-(void)searchIndex:(HTTPDictResultBlock)callback productPage:(NSDictionary *)prPagedict;//搜索商品
//图片尺寸
-(void)imagesizeFilename:(HTTPDictResultBlock)callback imagesize:(NSDictionary *)imaSdict;//图片尺寸
-(void)newProduct:(HTTPDictResultBlock)callback product:(NSDictionary *)product;//新品上架
-(void)hotpProduct:(HTTPDictResultBlock)callback product:(NSDictionary *)product;//热门商品
@end
